//
//  ImageDetailCollectionViewCell.m
//  GentlemanAnime
//
//  Created by dlios on 15-7-2.
//  Copyright (c) 2015年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "ImageDetailCollectionViewCell.h"


@implementation ImageDetailCollectionViewCell
- (void)dealloc {
    [_picImageView release];
    [_backView release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.userInteractionEnabled = NO;
        
        self.backView = [[UIView alloc] initWithFrame:self.contentView.bounds];
        self.backView.layer.borderColor = [[UIColor colorWithWhite:0.580 alpha:1.000] CGColor];
        [self.contentView addSubview:self.backView];
        [_backView release];
        
        self.picImageView = [[UIImageView alloc] initWithFrame:CGRectMake(3, 3, self.contentView.frame.size.width - 6, self.contentView.frame.size.height - 6)];
        self.picImageView.contentMode = UIViewContentModeScaleAspectFill;
        self.picImageView.clipsToBounds = YES;
        [self.contentView addSubview:self.picImageView];
        [_picImageView release];
    }
    return self;
}




@end
